FROM node:13.14
WORKDIR /opt/webservice
ADD dist dist
ADD public public
ADD views views
ADD nest-cli.json nest-cli.json
ADD package.prod.json package.json
ADD README.md README.md
RUN yarn config set registry http://repository.aishu.cn:8081/repository/npm-all/
RUN yarn && yarn add @anyshare/openapi --registry http://repository.aishu.cn:8081/repository/npm-all/
EXPOSE 4016
CMD [ "yarn", "start" ]
